<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateInvestFieldsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
        Schema::create('invest_fields',function(Blueprint $table){
            $table->increments('id');                           //关系标识
            $table->unsignedInteger('org_id')->nullable();      //投资机构标识
            $table->unsignedInteger('investor_id')->nullable(); //投资人标识
            $table->unsignedInteger('field_id');                //投资领域标识

            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('invest_fields');
	}

}
